<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" data-rule="required" class="form-control" step="0.01" name="row[price]" type="number" value="{$row.price|htmlentities}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Analysis_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-analysis_id" data-rule="required"  class="form-control " name="row[analysis_id]" type="text" value="{$row.analysis_id|htmlentities}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('单据归属人')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-handler" data-rule="required" class="form-control" name="row[handler]" type="text" value="{$row.handler|htmlentities}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('支付方式')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$pays.name|htmlentities}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <ul class="row list-inline plupload-preview" id="p-image">
                {volist name="imgs" id="vo"}
                <li class="col-xs-3"><a href="{$vo}" data-url="{$vo}" target="_blank" class="thumbnail">
                    <img src="{$vo}" onerror="this.src='/tgOZTfNHSR.php/ajax/icon?suffix='+'{$vo}'.split('.').pop();this.onerror=null;" class="img-responsive"></a>
                </li>
                {/volist}
            </ul>
<!--            <div class="input-group">-->
<!--                <input id="c-image" data-rule="required" class="form-control" size="50" name="row[image]" type="text" value="{$row.image|htmlentities}">-->
<!--                <div class="input-group-addon no-border no-padding">-->
<!--                    <span>-->
<!--                        <button type="button" id="plupload-image" class="btn btn-danger plupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-image">-->
<!--                            <i class="fa fa-upload"></i> {:__('Upload')}</button>-->
<!--                    </span>-->
<!--&lt;!&ndash;                    <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>&ndash;&gt;-->
<!--                </div>-->
<!--                <span class="msg-box n-right" for="c-image"></span>-->
<!--            </div>-->
<!--            <ul class="row list-inline plupload-preview" id="p-image"></ul>-->
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Remark')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-remark" data-rule="required" class="form-control" name="row[remark]" type="text" value="{$row.remark|htmlentities}"disabled>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_income')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-type" data-rule="required" class="form-control" name="row[is_income]" type="" value="{$row.is_income|htmlentities}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Operator')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-operator" data-rule="required" class="form-control" name="row[operator]" type="text" value="{$row.operator|htmlentities}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Company')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-company" data-rule="required" class="form-control" name="row[company]" type="text" value="{$row.company|htmlentities}" disabled>
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Group_id')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-group_id" data-rule="required" data-source="group/index" class="form-control selectpage" name="row[group_id]" type="text" value="{$row.group_id|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->
</form>
{if condition="$row['status'] == 1"}
<div class="form-group layer-footer">
    <label class="control-label col-xs-12 col-sm-2"></label>
    <div class="col-xs-12 col-sm-8">
<!--        <button type="submit" class="btn btn-danger btn-embossed cancelbill {:$auth->check('coll/log/cancelbill')?'':'hide'}">{:__('单据红冲')}</button>-->
        <!--        <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>-->
    </div>
</div>
{else /}
{/if}

<div class="form-group layer-footer">
    {volist name="ans" id="vo"}
    <div class="col-xs-12 col-sm-2">
        <button type="submit" class="btn btn-error btn-embossed joint-search" data-id="{$vo.source_id}" data-action="{$vo.controller}">{$vo.source}联查</button>
    </div>
    {/volist}
</div>

